Skip to content

Open source the internal Fabric AutoML fork - #1545

Open
Li Jiang (thinkall) wants to merge 88 commits into
mainfrom
lijiang/open-source-internal-merge
Open

Li Jiang (thinkall) wants to merge 88 commits into
mainfrom
lijiang/open-source-internal-merge

Conversation

@thinkall

@thinkall Li Jiang (thinkall) commented May 9, 2026 •

Copy link
Copy Markdown
Collaborator

Why are these changes needed?

Consolidate the internal Fabric AutoML fork into public FLAML so GitHub becomes
the sole maintained library source. Internal Fabric build/publish infrastructure
may consume this same source. Public main is merged normally; unrelated
internal Git history and delivery-only infrastructure are not imported.

Container-based Spark CI

The three existing Spark profiles now run against a standalone Docker Compose
cluster with a separate driver, master, and two worker containers:

Python Spark
3.11 3.5.1
3.12 4.0.1
3.13 4.1.0

Every node uses the same Python/Java/dependency image. A mandatory startup
guard rejects local mode, requires task execution on both worker hosts,
checks driver/executor runtime agreement, and verifies that joblib also
executes remotely. Test helpers honor FLAML_TEST_SPARK_MASTER without
changing their default local behavior.

Shared storage supports native-model persistence and MLflow artifacts.
Per-application resource limits leave capacity for notebook-created Spark
sessions. Coverage is mapped back to the checkout and aggregated with the
unchanged non-Spark matrix. Logs and JUnit results are retained, and cleanup
is scoped to the current job's Compose project.

The first container run exposed an existing broadcast_code bug: a
single-partition copy task reached only one executor. Generated learner/metric
code now uses Spark-managed, content-addressed archives, with qualified module
lookup preserved for standard broadcast pickle and reused or late workers.
The live regression requires the generated learner to load on both containers.
The sampling regression now checks row conservation, disjointness, and
per-label fractions rather than assuming an exact-size four-row random sample.
Its lazy branches share one materialized input fixture, which is released
after the test instead of independently reevaluating a shuffle.

The latest public main merge adopts upstream's formatter Python 3.12 and
SHA-pinned Temurin Java 17. Container images retain their matching Java 17 runtime.

The joblib-spark-fabric reference workflow
was checked against its topology, image, assertions, and
passing execution logs.
Those logs show Spark and joblib executing on three distinct worker containers;
the reference is correct and does not need a correction PR.

Latest synchronization

Public main through f2427d802 is merged normally in
1fc558bc9.
A fresh complete internal-library inventory found no missing in-scope
feature. The latest internal main update changes ownership metadata only,
not library behavior; delivery-only exclusions remain intentional.

  • Use the public 2.8.0 release, not the internal 2.8.0.post1 suffix.
  • Include upstream fixes for default time-series R2 target ordering and local
    joblib context inside inline Spark trials, plus the public dependency update.
  • Add the missing nullable timestamp/DST-fold and delayed seasonal-phase
    regression cases from the internal update.
  • Run modern panel forecasting combinations rather than blanket-skipping
    Python 3.11; only missing packages or the known legacy dependency combination
    skip. Existing finite/shape/SMAPE assertions and artifact isolation remain.
  • Keep test/automl/test_rouge_metric.py identical to OSS. It still imports
    real rouge_score.scoring.Score and AggregateScore; the internal
    SimpleNamespace environment workaround is deliberately not copied.

Internal release skills, deployment/pipeline files, Conda/certificate changes,
and environment-specific timeout policy remain outside this public update.
Existing public calendar/forecast semantics and estimated smoothing
initialization are retained.

Current review fixes

Latest review correction: d794c25bc.
Address review 6121901772: with FLAML_RUN_OPENML_LIVE=1, the Spark notebook now re-raises OpenML loader errors instead of substituting California housing data. Controlled TLS and malformed-response tests verify the original exception is preserved and the fallback is not called. Unset/disabled flags retain the interactive fallback, and ordinary CI still uses the checked-in offline fixture. No library implementation, dependencies, data files, or CI gates changed.

Previous Spark CI correction: 3ca0a592e.
The preceding Spark 4.1 job hit its 120-minute step limit after long delays in remaining OpenML-dependent tests. Default Spark notebook/exception cases now reuse the existing 367 KB housing cache, and the parallel-training smoke test reuses the existing 122 KB classification fixture. No data was added or duplicated.

The original Spark notebook and array integrations remain available with FLAML_RUN_OPENML_LIVE=1 and live_openml. The array test must train a model; network errors and absent models no longer silently pass it. Notebook models, logs, and generated learner namespaces are test-owned. Executed notebooks and immediate failure/retry tracebacks survive a later timeout. Existing timeouts, real Spark execution, worker coverage gates, public defaults, library implementation, dependencies, and release version are unchanged.

Previous reporting follow-up: 90c3cc253.
The successful parent build could not publish its detailed coverage table because it exceeded GitHub's comment-size limit. The pinned action now posts its summary and badge instead. Full coverage data/artifacts, Codecov uploads, test selection and all CI gates remain unchanged.

Previous CI repair: 8e2c97a5f.
The failed jobs depended on OpenML service availability. Following the approved policy, ordinary notebook CI now reuses the existing 122 KB checked-in classification fixture, rather than downloading data. Real model fits, predictions, ensembles and model reload assertions remain; ensemble execution is explicitly single-worker.

The original OpenML dataset/array/task checks remain available through FLAML_RUN_OPENML_LIVE=1 and the live_openml marker. TLS and malformed-response failures are not suppressed. The task-split endpoint currently returns an error message instead of ARFF; that remains a genuine live-integration blocker, not a default-CI dependency.

Windows ARM Python 3.11+ test-only dependencies now require the repaired scikit-learn 1.9 client and compatible joblib. Public core/AutoML/Spark requirements and other test profiles are unchanged. No data file was added or duplicated, and no library implementation or release version changed.

Previous hourly follow-up: 7323c5422.
Address the two new findings in review 6110183549:

  • Replace action-wide locking with short, session-aware reference-count bookkeeping. The last overlapping caller restores the original option, including an unset value; Spark jobs do not hold the global lock.
  • Make the housing regression reject omitted or enabled downloads and forward the real call arguments unchanged.

Previous corrections: 155c92e0b.
Address the five comments in review 6108562592:

  • Distribute prepared Spark code separately from its committed activation. Public worker aliases reject incomplete publications instead of selecting uncommitted or stale code; retries preserve revision and process-lock guarantees.
  • Scope pandas-on-Spark ANSI compatibility to actual data entrypoints, including conversion, concatenation, splitting, model preprocessing and metrics. Restore caller options, preserve Spark SQL ANSI, and avoid import-time mutation or local-input JVM startup.
  • Keep optional Fabric diagnostic write failures nonfatal, with ordinary local warnings.
  • Combine parallel coverage before reporting and remove incompatible append flags.
  • Read the checked-in housing cache through an absolute fixture path with downloads disabled; keep output artifacts isolated.

Public defaults, exact OSS ROUGE, the requested folder removals, dependency manifests and version remain unchanged. No review outputs are committed.

Previous cleanup: f958965d3.
Remove benchmark/pmlb and notebook/trident as requested, including their
exclusive benchmark/notebook tests, obsolete ignore rule and stale documentation.
The retired notebooks included the untracked-history plotting examples.

Address review 6107561363
with a public parameter-importance example that starts an MLflow run before
fitting. Its regression executes the documented code outside Fabric with
autologging disabled and checks the real trial history and resulting plot.
Removing only the tracking context reproduces the reported ValueError.
No library Python implementation, public default, dependency manifest or version changed.

Previous CI follow-up:
92d4f833b.
The preceding head's Windows ARM jobs exposed three legacy fixture failures.
Optuna-like callback fixtures now declare their metric and supply valid reports;
analysis mocks now contain actual final results. Generic callbacks no longer
read a metric attribute that their non-Optuna path does not need.
The numeric-report and final-score protections remain intact.

Main reviewed-issue correction:
d6dd284cc.
The engineer asked to address the remaining cycle-eleven issues. All 36 retained
finding rows
have tested driver dispositions across 27 correction groups.

  • Repair deferred and legacy checkpoint recovery, compact historical scalar
    reports without losing their best value/cost, and recover from invalid warm starts.
  • Share finite-score and lexicographic rules across search and analysis, preserving
    signed percentage bounds, secondary objectives, nested starting configurations
    and actual final-score selection.
  • Settle failed Optuna allocations and invalid completions, propagate persistence
    failures, preserve partial reports and flush invocation-owned tail batches.
  • Map AutoML winners by iteration identity and keep a learner's remaining
    configurations after a failed trial. Preserve successful native-Ray sibling
    metrics even when the experiment raises.
  • Restore worker state through cleanup interruptions; preserve relative FileStore
    and SQLite URI semantics; retain adoption slots and completed writes across retries.
  • Isolate backend test state through one outer fixture, differentiate real Spark
    driver/worker stores and account for all runs, test actual non-cancellation errors,
    and collect native-Ray visualization and invalid-score regressions in CI.

No dependency manifest or release version changed. The new private objective
helper brings the verified library payload to 100 Python files. Public
defaults, explicit Fabric behavior and exact OSS ROUGE are preserved.
No review outputs are committed.

Public defaults and Fabric behavior

Core installation remains NumPy-only, and flaml[automl] remains usable without
MLflow, Spark, or Fabric services. Runtime detection is local and does not start
Spark or contact services. FLAML_FABRIC_RUNTIME=auto|true|false selects runtime
behavior; explicit API options take precedence.

Behavior Public defaults Fabric defaults
Model history Disabled Enabled unless overridden
MLflow integration Active run or autologging required Also supports local visualization history
MLflow tags flaml.* synapseml.flaml.*
Tunable feature engineering Off unless configured Off unless configured

mlflow_logging=False disables the integration and Fabric history collection.
Autologging artifact opt-outs and caller settings are preserved. Explicit
registration logs and registers the requested fitted pipeline.

The existing reviewed contracts remain: training-partition-only feature
preprocessing/augmentation, model-owned export preprocessing, fitted-calendar
forecasts, validation-only transform latency, full-column Spark cast checks,
lossless timestamp/integer handling, and safe training-log append without
implicit search resume.

Review history and scope

Public main remains f2427d802 and internal main remains 2ba09f415.
The existing migration-parity audit and intentional internal infrastructure
exclusions remain applicable.

Cycle 11 independently reviewed f87a44c92 with five valid assignments:
Neon robustness/correctness/testing, Astra comprehensive and Grok comprehensive.
All 36 rows and the original ISSUES_FOUND verdicts remain preserved, with no
feedback or out-of-projection access. Driver counterexamples informed these fixes.

The later request, "try to address the issues", authorized corrections and
validation. No twelfth independent review was run. All previous review counts
and exhausted provider-replacement limits remain unchanged. Tested corrections
do not retroactively turn the earlier source review into a clean verdict for this
new revision; human review remains required.

The previous head's Build 46090524995
completed successfully, including its three container profiles. That is historical
evidence, not a replacement for the current-head checks below.

Validation

Current head: d794c25bc.

Build 46536929266 passed for this exact head. All current automatic checks are green; the complete offline notebook and remote-worker proof were verified for all three Spark profiles. All six live-mode/error regression cases also passed in hosted CI. Human approval remains required.

Command / scope Result
python -m pytest test\test_artifact_paths.py test\test_spark_setup.py::test_notebook_isolates_writes_and_retains_execution_diagnostics -q (session-local JUnit output) 25 passed
Actual notebook cell with TLS/malformed-response failures and unset/0/1 flags All six cases passed; the two live cases failed before the guard
Existing offline fixture, no-download, and notebook-isolation cases Passed
pre-commit run --all-files and commit hooks Passed
Scope Three notebook/test/documentation paths; no library, dependency, or data changes
Build 46536929266 Passed

The fault-injection regressions execute the notebook's real data cell without network requests. Full current-head hosted validation passed. No additional independent review round was dispatched and no review outputs are committed.

Earlier validation (historical)

Spark fixture/diagnostic validation (3ca0a592e)

Validated revision: 3ca0a592e.

Build 46475871127 passed for this exact head. All three container profiles executed the offline Spark notebook and publication failure cases successfully; current-head automatic checks passed. Human approval remains required.

Command / scope Result
python -m pytest test\test_artifact_paths.py test\test_spark_setup.py test\fabric\test_pipeline_contracts.py -q (session-local JUnit output) 112 passed
Session-local run_spark_checks.ps1 -Tests test\spark\test_exceptions.py,test\spark\test_performance.py::test_automl_array (private Java/Python, Spark 4.0.4 local[2]) 4 passed, including real parallel model training and predictions
FLAML_RUN_OPENML_LIVE=1; python -m pytest test\spark\test_notebook.py test\spark\test_performance.py -m live_openml --collect-only -q 2 original Spark live paths selectable, not counted as executed tests
pre-commit run --all-files and commit hooks Passed
actionlint .github\workflows\python-package.yml Passed
Change scope Ten test/notebook/CI/documentation paths; no library, dependency, or data-file changes
Build 46475871127 Passed

The complete notebook and remote-worker/container proof were verified from the exact-head Linux CI artifacts, separately from Windows local-mode evidence. No additional independent review round was dispatched and no review outputs are committed.

Coverage-comment follow-up (90c3cc253)

Validated revision: 90c3cc253.

Coverage-comment publication was verified: the correct-head 87% badge was posted without the size-limit warning. Build 46442565218 failed only in the Spark 4.1 / Python 3.13 job, which reached its 120-minute test-step timeout. The original notebook failure did not retain a cell traceback; its exact blocked cell is not proven. This is not a successful full-CI result.

Command / scope Result
pre-commit run --all-files and commit hooks Passed
actionlint .github\workflows\python-package.yml Passed
Pinned coverage action's hide-report contract Verified: retains summary/badge
Change scope Reporting configuration only; library/test/package sources unchanged

Application tests were not rerun locally for this reporting-only change. The parent head's complete successful CI, including all three Spark profiles and executed offline model/reload cases, is preserved below rather than counted as new-head validation.

Fixture-based CI repair (8e2c97a5f)

Validated revision: 8e2c97a5f.

Build 46425085392 passed for this exact head. All current-head automatic checks passed; human approval remains required.

Command / scope Result
Affected notebook/loader/metadata run and final metadata follow-up (last result per case) 114 passing unique cases, 12 skips: nine platform-specific guards and three explicitly opt-in live integrations
python -m pytest test\test_package_metadata.py -q --tb=short --disable-warnings (session-local reports/cache) 37 passed, 9 platform skips after replacing two timed-out import-heavy coverage probes with a minimal measured fixture
Default dataframe/array fits, MLflow model reload, offline smoke and missing-SDK task smoke All five passed, with model assertions intact
FLAML_RUN_OPENML_LIVE=1; python -m pytest test\automl\test_notebook_example.py -m live_openml --collect-only -q Three original live integrations selectable
Live repaired sklearn fallback, with OpenML SDK absent Both original dataset/array examples passed with ordinary TLS verification
Windows ARM64 binary dependency resolution Fixed client/joblib pair resolves to native wheels
pre-commit run --all-files and commit hooks Passed
python -m build --sdist --wheel --no-isolation and package audit (session-local output directory) 100 library Python files matched; ARM test metadata validated for Python 3.11/3.12/3.13

The full local run's two coverage-probe startup timeouts were corrected and retested in the metadata follow-up; they are not counted as passing unchanged. Original failure evidence is retained. No independent review round was added and no review outputs are committed.

Concurrency follow-up (7323c5422)

Validated revision: 7323c5422.

Build 46404530636 failed in live OpenML examples. The complete logs showed TLS hostname errors across ten jobs; this failure prompted the approved fixture-based CI repair.

Command / scope Result
python -m pytest test\test_spark_ansi.py test\test_artifact_paths.py test\test_misc_coverage.py::TestFlamlInit -m "not spark" -q --tb=short --disable-warnings (session-local cache/JUnit options) 22 passed, 1 Spark-only case deselected
Real Spark overlapping actions, option restoration, concatenation, model fitting/scoring and installed-Spark JVM guard 9 passed
Download-policy negative controls Both omitted and explicit True policies rejected
pre-commit run --all-files and commit hooks Passed
python -m build --sdist --wheel --no-isolation and byte inventory (session-local output directory) Both distributions match 100 library Python files

No additional independent review round was run and no review outputs were committed.

Five-comment correction (155c92e0b)

Validated revision: 155c92e0b.

Build 46392779282 passed for 155c92e0b. All three downloaded Spark-container JUnit reports confirm normal publication and both delivery/state-failure cases passed. This is parent-head evidence, not validation of the newer follow-up.

Command / scope Result
python -m pytest test\fabric\test_runtime.py test\test_artifact_paths.py test\test_package_metadata.py test\tune\test_spark_backend.py test\test_misc_coverage.py test\test_spark_setup.py -m "not spark" -q --tb=short --disable-warnings -n 2 --dist=loadfile --maxfail=5 (session-local cache/JUnit options) 389 passed, 9 platform skips
Fresh-process late-session/active-import probe and targeted Spark utility tests 12 passed on real Spark 4
Real Spark two-trial model fitting/scoring and installed-Spark local-input/JVM guard 2 passed
Real Windows publication tests 2 passed; 3 blocked by missing Hadoop tooling; the same publication cases are collected by all three container profiles
pre-commit run --all-files and actionlint .github\workflows\openai.yml Passed
python -m build --sdist --wheel --no-isolation and byte inventory Both distributions match 100 library Python files

The original failing-before regressions and platform limitations are retained. No additional independent review round was run.

Folder-cleanup validation (f958965d3)

Validated revision: f958965d3.

Build 46373352895 is running for this exact head. Current-head hosted validation is pending; the preceding green build is historical evidence, not validation of this cleanup.

Command / scope Result
python -m pytest test\test_package_metadata.py test\fabric\test_pipeline_contracts.py test\fabric\test_visualization_contracts.py -q --tb=short (with session-local cache and JUnit output options) 117 passed, 9 skipped; the skipped Bash workflow guards run on Linux CI
pre-commit run --all-files and commit hooks Passed
Documented example without only its explicit MLflow run Expected ValueError: no trial history was collected
Scoped removal and source checks Both directories and retained references are absent; library Python files and exact OSS ROUGE are unchanged

No additional independent review round was run, and no review outputs were committed.

Previous callback/analysis CI (92d4f833b)

Validated revision: 92d4f833b.
Build 46172007153
validates this revision. Exact-head automatic checks passed.
At that revision, GitHub reported MERGEABLE and 0 unresolved review threads.

Command / scope Result
python -m pytest test\test_misc_coverage.py test\tune\test_search_thread.py -m "not spark" -q --tb=short 243 passed, 1 deliberately deselected Spark-only case
python -m pytest test\test_misc_coverage.py -m spark -q --tb=short, installed-Spark environment 1 passed, 120 deselected; importing FLAML starts no JVM
python -m pytest test\test_misc_coverage.py::TestSearchThread test\test_misc_coverage.py::TestExperimentAnalysis test\fabric\test_ray_reporting.py::test_native_optuna_thread_ignores_partial_reports_and_settles_invalid_scores -q --tb=short 23 passed on each of Ray 2.4 and Ray 2.49
python -m build --sdist --wheel --no-isolation and byte inventory Both rebuilt distributions match 100 library Python files
pre-commit run --all-files, commit hooks and whitespace checks Passed
git hash-object test\automl\test_rouge_metric.py Unchanged OSS blob 4ec8824c0a78cf851eb35d6da5b405981b3e3bb2
Hosted Ray compatibility (1.13.0, Python 3.10) 46 passed, exact head
Hosted Ray compatibility (2.4.0, Python 3.10) 46 passed, exact head
docker compose run --name "${COMPOSE_PROJECT_NAME}-driver" --use-aliases driver All three current-head profiles passed with required publication/pickle/state/cancellation cases and executed worker coverage

The preceding correction retains its complete
local evidence: 1,513 affected tests, 46 native cases per Ray profile, 19 TFT
cases, 14 real local Spark cases and the additional final checkpoint/candidate
checks. Those results remain attributed to their original source snapshots.
This two-file follow-up has the targeted checks above and its own full hosted CI.

The earlier hosted failures and original local reproduction are preserved.
The extra local installed-Spark failure came from selecting a Spark-only test
in a profile without PySpark; it passed in the existing Spark environment.
No tests were skipped to hide the three reported failures, no numeric guard was
weakened, and no new independent review round was run.

Bounded logistic-regression smoke (630f30c42)

The immediate prior Build 45665181111
passed 18 jobs, including every Spark profile and the corrected ARM cases.
Only Ubuntu/Python 3.13 non-Spark
timed out. Its faulthandler stack identifies test_model.py::test_lrl2 inside
sklearn/SciPy L-BFGS dense matrix multiplication.

The old fixture allocated 100000-by-1000 floating-point values (800 MB before
copies and concurrent-worker overhead) and relied on a 1e-5 budget to
interrupt native work. Replace it with a seeded 200-by-8 actual fit and a
prediction assertion. Separate small cases force MemoryError and
TimeoutError, verifying budget forwarding, a fitted dummy fallback, and
majority-class predictions. No estimator is skipped and no production code
or timeout limit is changed.

python -m pytest -q test\automl\test_model.py::test_lrl2 test\automl\test_model.py::test_lrl2_resource_failure_uses_fitted_fallback test\tune\test_stop.py::test_eval_stop --tb=short -o faulthandler_timeout=60

Result: 4 passed on Python 3.13 and 4 passed on Python 3.10.
pre-commit run --all-files also passed. The latest commit changes only
test/automl/test_model.py; the built library remains byte-identical to
b0e62ec75. The linked new-head run, not the local Windows tests, establishes
whether the Linux timeout has been eliminated.

Focused CI correction (b0e62ec75)

Build 45654950980
exposed three specific problems, all corrected without changing the public
default profile or weakening the worker/runtime guards:

  • MLflow's global best-effort autologging can leave a partial, unmarked flavor
    configuration when an optional backend is unavailable. Replaying that
    identical state as an explicit request caused the ARM Transformers-without-
    PyTorch failure. Preserve disabled state and avoid the redundant explicit
    attempt; genuinely different explicit settings still use their flavor API.
  • Three old mocked Tune wrappers bypassed the real private trial-ID consumer.
    Their replacements require and consume the metadata before calling the
    unchanged user objective.
  • Spark 4.1 returned [2, 3, 1] rather than [2, 1, 3] for two tied labels.
    Verify exact label/count association, cardinality, and descending frequency,
    not an undefined ordering within a frequency tie. Library behavior is unchanged.
Correction validation command/check Result
python -m pytest -q test\fabric\test_mlflow_lifecycle.py test\fabric\test_migration_contracts.py test\fabric\test_runtime.py test\fabric\test_mlflow_coverage.py test\automl\test_mlflow.py test\tune\test_tune_coverage.py -n 2 --dist=loadfile --maxfail=5 --tb=short -o faulthandler_timeout=90 265 passed
python -c "import transformers, pytest; raise SystemExit(pytest.main(['-q', r'test\fabric\test_mlflow_lifecycle.py::test_serialized_remote_objective_restores_actual_worker_configuration', r'test\fabric\test_mlflow_lifecycle.py::test_global_autolog_partial_configuration_is_not_retried_as_explicit', r'test\fabric\test_mlflow_lifecycle.py::test_remote_autolog_preserves_disabled_unavailable_flavor', '--tb=short']))" 7 passed; the actual optional-backend case failed with the same DummyObject.train error before the correction
pytest.main(['-q', r'test\spark\test_utils.py::test_unique_pandas_on_spark', '--tb=short']) in an owned SparkSession(local[2]) with Arrow enabled and ANSI disabled 1 passed on real local Spark 4.0.4
pre-commit run --all-files Passed before the four-file correction commit
python -m build --no-isolation --outdir "$ARTIFACTS\ci-correction-dist" Rebuilt 2.8.0 wheel/sdist; all 99 library Python files match source byte-for-byte; no new review artifacts

The local optional-backend reproducer used Transformers 5.23.0 without
PyTorch in a session-owned environment. CI's exact 5.24.1 was unavailable
from the local package index; the new hosted ARM jobs validate that version.
No shared/user-global environment was modified.

At the prior head, the actual-container Python 3.11/Spark 3.5.1 profile passed
128 tests with 3 skips; Python 3.12/Spark 4.0.1 passed 129 with 2 skips.
Their logs prove two worker hosts, joblib execution, measured worker coverage,
and reused interpreter revisions. Python 3.13/Spark 4.1 passed 128 with 2 skips
and only the tied-order assertion failure. Ubuntu 3.13 non-Spark completed
in 42 minutes with only the three mock failures: the earlier three-hour
timeout did not recur, but its underlying cause is not claimed established.
All these are prior-head results, not substitutes for the new run.

Final-fix local validation (ff8979245)

The following commands use python for the selected isolated interpreter,
$CHECKOUT for the source worktree, and $ARTIFACTS for session-only outputs.
Source tests use Python 3.13; offline NLP/TFT use the existing Python 3.10
environment without installing or modifying user-global packages.

python -m pytest -q test\fabric test\automl\test_ts_data.py test\automl\test_forecast_contracts.py test\automl\test_lossless_conversion.py test\automl\test_data_coverage.py test\automl\test_resampler.py test\automl\test_mlflow.py test\automl\test_regression.py::TestRegression::test_regression test\automl\test_rouge_metric.py test\tune\test_spark_backend.py test\test_spark_setup.py test\test_package_metadata.py test\test_benchmark_contracts.py test\test_packaging.py -n 2 --dist=loadfile --maxfail=5 --tb=short --durations=12 -o faulthandler_timeout=90

Result: 791 passed, 12 skipped, 20 subtests passed. Initial verification
exposed three test-setup defects: panel-CV cases lacked the required integer
index, and max_iter=0 still fitted an initial model. Corrected fixtures now
exercise CV guidance and a genuinely empty candidate search; the entire
affected command above then passed.

Additional executed command/check Result
python -m pytest -q test\nlp\test_hf_utils_coverage.py test\nlp\test_autohf_classificationhead.py test\nlp\test_default.py::test_build_portfolio test\nlp\test_default.py::test_starting_point_not_in_search_space test\nlp\test_default.py::test_build_error_portfolio --junitxml="$ARTIFACTS\offline-nlp.xml" 56 passed; retained JUnit includes executed classification and regression head-training cases
python -m pytest -q test\automl\test_forecast.py::test_forecast_panel --tb=short -o faulthandler_timeout=180 Real TFT training/refit/pickle/prediction passed
python -m pytest -q test\spark\test_dtype_contracts.py --tb=short 27 real Spark SQL dtype cases passed locally; not a claim of multi-container coverage
python -m build --no-isolation --outdir "$ARTIFACTS\dist" 2.8.0 wheel and sdist built; exact 99 tracked library Python files, no unexpected library files or new review artifacts
python "$CHECKOUT\test\check_public_install.py" and python -m pip check Isolated NumPy-only core wheel profile passed, including wildcard imports
python "$CHECKOUT\test\check_public_install.py" --automl and python -m pip check Isolated AutoML wheel profile passed without MLflow/Spark/Fabric
python "$CHECKOUT\test\check_public_install.py" --autofe and python -m pip check Isolated AutoFE wheel profile passed, including actual AutoML training and exported predictions
python "$CHECKOUT\test\check_public_install.py" --autozero and python -m pip check Isolated autozero RF wheel profile passed without XGBoost/LightGBM
pre-commit run --all-files and actionlint .github\workflows\python-package.yml Passed before the source-only commit
git hash-object test\automl\test_rouge_metric.py Unchanged OSS blob: 4ec8824c0a78cf851eb35d6da5b405981b3e3bb2

All 99 library files in the baseline tested wheel were compared byte-for-byte
with that committed source. The review-fix commit contains only 43 explicitly
manifested source/test/config paths; no new review reports were included. The prior
validation below is retained as historical evidence, not current-head proof.

Local merge-baseline validation (1fc558bc9)

Command/check Result
pre-commit run --all-files Passed before the commit
python -m build --no-isolation --outdir ..\review-pr1545-nov25\dist Built 2.8.0 wheel and sdist; all 99 tracked library Python files present; no generated learner or review artifacts
python -m pytest -q test\test_packaging.py test\automl\test_rouge_metric.py 40 passed; 20 subtests passed
python -m pytest -q test\nlp\test_hf_utils_coverage.py test\nlp\test_autohf_classificationhead.py test\nlp\test_default.py::test_build_portfolio test\nlp\test_default.py::test_starting_point_not_in_search_space test\nlp\test_default.py::test_build_error_portfolio --maxfail=3 56 passed, offline, using the existing Python 3.10/Torch environment
actionlint .github\workflows\python-package.yml .github\workflows\pre-commit.yml Passed
Installed test\check_public_install.py, separately with no flag, --automl, --autofe, and --autozero; python -m pip check All four isolated wheel profiles passed outside the checkout with default runtime detection
OSS ROUGE source comparison Unchanged blob 4ec8824c0a78cf851eb35d6da5b405981b3e3bb2

At the merge-baseline head, the full affected-surface command passed 493 tests, with 11 skips:

python -m pytest -q test\fabric test\automl\test_ts_data.py test\automl\test_forecast.py::test_statsmodels_future_forecast_uses_training_boundary test\automl\test_forecast.py::test_statsmodels_delayed_future_forecast test\automl\test_forecast.py::test_statsmodels_delayed_future_forecast_requires_exog test\automl\test_forecast.py::test_statsmodels_generated_exog_fills_future_gap test\automl\test_forecast.py::test_statsmodels_rejects_mixed_training_and_future_periods test\automl\test_classification.py::TestClassification::test_histgb_ensemble test\automl\test_multiclass.py::TestMultiClass::test_custom_metric test\automl\test_mlflow.py test\test_package_metadata.py test\test_benchmark_contracts.py test\tune\test_spark_backend.py --maxfail=3 --tb=short --durations=10 -o faulthandler_timeout=90

An earlier combined local attempt was stopped in the existing CatBoost-heavy
preprocessing test. The restored HistGB case is now independently runnable;
the bounded affected suite above completed successfully. New-head platform
coverage remains the responsibility of the running hosted jobs.

Previous container-CI validation

The evidence below belongs to the previous published head, not this update.

Hosted execution for container-CI head
47ba01287
is green in Build run 45183617905.
All 19 build jobs passed: three container Spark profiles, eleven non-Spark
profiles, four public-install profiles, and coverage aggregation.
At that head, all 27 reported PR checks passed; the release-only gh-release job was
intentionally skipped.

Each previous container-CI-head Spark log records tasks on two distinct worker containers,
matching Python/Spark/FLAML versions, and remote joblib execution. The suites
include generated-learner broadcast pickle on both workers, notebook
execution, native-model persistence, and the materialized sampling assertions.

Hosted Spark profile Result
Python 3.11 / Spark 3.5.1 92 passed, 3 skipped
Python 3.12 / Spark 4.0.1 93 passed, 2 skipped
Python 3.13 / Spark 4.1.0 93 passed, 2 skipped, one successful rerun

Actual container execution was validated on GitHub, not claimed locally:
the workstation's Linux Docker daemon was unavailable during local validation.

Command/check Result
pre-commit run --all-files Passed
python -m pytest test\tune\test_spark_backend.py test\test_spark_setup.py test\test_misc_coverage.py test\fabric\test_runtime.py -m "not spark" -q --tb=short --disable-warnings 234 passed, one Spark-only case deselected
python -m pytest test\spark\test_utils.py::test_train_test_split_pyspark -q --tb=short --disable-warnings Passed on local Spark 4.0.4
python -m pytest test\test_package_metadata.py test\test_packaging.py -q --tb=short --disable-warnings 23 passed, nine Linux-shell-only skips on Windows, 20 passing subtests
actionlint -color=false -shellcheck= -pyflakes= .github\workflows\pre-commit.yml .github\workflows\python-package.yml Passed
docker compose -f test\spark\containers\compose.yml config --format json Passed; expected build context and remote master
CoverageData integration check for /workspace/flaml path mapping Passed; source mapping and branch arcs preserved
Complete OSS ROUGE test content compared with ms/main Identical; real package types retained

Previous consolidation validation

The earlier synchronization head
398c8f62b
passed all 19 jobs in Build run 42770393802.
This validates that earlier head, not the new container configuration.

Command/check Result at the earlier head
python -m build --no-isolation Built public 2.8.0 wheel and source distribution
python -m pytest test\automl\test_forecast.py -q --tb=short --disable-warnings -k "naive or seasonal or panel_skip_policy or initialization" 28 passed
Installed core, AutoML, and AutoFE wheel smoke checks outside the checkout Passed without MLflow or Spark

The affected-surface command passed 419 tests, with 6 Linux-shell-only
skips
and 20 passing subtests:

python -m pytest test\automl\test_rouge_metric.py test\automl\test_time_series_score.py test\automl\test_ts_data.py test\automl\test_add_time_idx_col.py test\automl\test_lossless_conversion.py test\automl\test_ml_coverage.py test\tune\test_spark_backend.py test\fabric\test_pipeline_contracts.py test\fabric\test_runtime.py test\fabric\test_mlflow_coverage.py test\test_package_metadata.py test\test_packaging.py -m "not spark" -n 2 --dist=loadfile -q --tb=short --disable-warnings

The panel dependency gate was tested with missing, legacy, and modern package
versions without downloading data. The earlier hosted Ubuntu/Python 3.11 job
installed pytorch-forecasting==1.8.0 and passed its full non-Spark suite:
1,447 passed, 10 skipped, with one successful rerun. Full panel training
was not run locally.

All nine existing GitHub review threads remain resolved. The latest merge
has no conflicts; fresh hosted checks and the targeted review remain
pending. Normal human approval is still required. The PR is not merged.
Live Fabric rollout is a separate activity.

Related issue number

Continuation of this consolidation PR; no separate issue or ADO TaskId was supplied.

Checks

Li Jiang (thinkall) and others added 13 commits May 9, 2026 13:23
Squash-merge the internal FLAML-Internal main branch into the open-source
ms/main branch so the public repository contains the full Fabric AutoML
feature set developed internally. Internal commit history is collapsed
into a single commit; per-PR provenance is preserved in the internal
Azure DevOps repo.

What this brings from the internal branch:
- flaml/fabric/ — autofe, lowcode, mlflow, telemetry, visualization, and
  the Optuna-backed fANOVA evaluator (replacing the previous Cython
  implementation, internal PR 2045210)
- flaml/visualization/ — visualization helpers
- flaml/automl/ — coverage-driven improvements (utils.py and friends,
  internal PR 1970441)
- conda-build/ — Fabric conda packaging metadata
- .pipelines/, azurepipelines-coverage.yml — Azure DevOps build config
  (informational; OSS CI continues to be GitHub Actions)
- benchmark/pmlb/ — PMLB benchmarking notebooks/results
- lowcode/handlebars/ — low-code notebook generation templates and mocks
- notebook/trident/ — Fabric demo and test notebooks
- test/automl/test_*_coverage.py, test/fabric/, test/test_misc_coverage.py,
  test/tune/test_tune_coverage.py — expanded coverage suites
- HowToMergeGithub.md, HowToTestFLAML4Fabric.md — internal-process docs
  retained for historical reference

What is preserved from ms/main:
- pyproject.toml PEP 621 migration (#1531, #1538) — setup.py is now a
  minimal stub
- Python 3.13 classifier and editable-install fix
- pandas 3.0 / sklearn 1.7 / catboost compatibility fixes
- OpenML test fallbacks using make_classification (#1534/#1537)
- Recent website dependency bumps (#1521-#1543)

Conflict resolutions:
- flaml/version.py: keep ms/main 2.6.0 plus internal conda-version comment
- setup.py: keep ms/main minimal stub (pyproject.toml is now authoritative);
  port the additional 'autofe', 'fabric_python', and full 'synapse' extras
  from the internal setup.py into pyproject.toml
- test/automl/test_constraints.py, test_score.py, test_split.py, test_xgboost2d.py:
  keep ms/main make_classification fallbacks (more robust and consistent)
- website/yarn.lock: keep ms/main version (deleted on internal)

Files intentionally NOT brought over (internal-only operational artifacts
that are broken or meaningless on GitHub):
- website/.npmrc — pinned to internal Azure DevOps NPM feed; would break
  public website builds
- .azuredevops/policies/approvercountpolicy.yml — Azure DevOps PR policy
  for the internal repo
- es-metadata.yml — internal Engineering System routing metadata
- owners.txt — internal Azure DevOps owners file

A .pre-commit-config.yaml exclusion was added for
notebook/trident/featurization.ipynb (3.7 MB demo notebook with embedded
outputs) so the existing check-added-large-files hook still guards future
contributions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
These pipeline YAML files target the internal OneBranch images, pools,
and feeds and have no use in the public repository, where CI is run
through GitHub Actions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- conda-build/ — Fabric conda packaging metadata; the conda recipes
  reference internal blob storage and are part of the internal release
  pipeline, not generally useful in the public repo.
- lowcode/handlebars/ — internal low-code notebook generation templates
  and mock data used by the Fabric low-code AutoML UI; not consumed by
  the OSS flaml package.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This Azure ML pipeline tuning example existed on ms/main but was absent
from the internal branch, so the squash merge unintentionally deleted
it. Restore it verbatim from ms/main since it's a public example users
may rely on.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove three more internal-only files that have no place in the public
repository:
- azurepipelines-coverage.yml — Azure Pipelines coverage configuration
- HowToMergeGithub.md — internal-to-OSS sync runbook (no longer
  needed once the fork is fully open-sourced)
- HowToTestFLAML4Fabric.md — Fabric-specific manual test instructions
  for the internal CI / Fabric runtime

Also revert all website/docs/ additions and modifications brought in
by the internal merge so the public docs site is unchanged by this PR.
A separate, focused docs PR can introduce any of the internal docs
content that is still relevant.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The fanova/ adapter has been migrated to wrap Optuna's pure-Python
FanovaImportanceEvaluator (see flaml/fabric/fanova/evaluator.py and
the README in the same folder, which explicitly states 'No local
Cython extension or build_ext step is required.'). The legacy
fanova.pyx file is no longer compiled or imported by any code path,
so drop it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The newly merged test/spark/test_internal_mlflow.py does an
unconditional 'import pyspark' at module level and depends on the
internal MLflow tracking server, so it cannot be collected on the
GitHub Actions matrix entries that do not install pyspark
(all Python 3.10 jobs and all Windows jobs) and would not work even
where pyspark is present. The internal .pipelines/build.yml already
adds the same --ignore for this file in both its 'spark' and
'notspark' test variants.

Fixes the 'collected 838 items / 1 error' failure on PR #1545.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mirror the structure of the internal Azure DevOps pipeline
(.pipelines/build.yml in the internal fork) in the public GitHub
Actions workflow:

* New matrix axis 'test-type' with two values, 'notspark' and 'spark',
  each with its own --ignore list and pytest -m filter:
  - notspark: --ignore=test/autogen --ignore=test/spark -m 'not spark'
  - spark:    --ignore=test/autogen
              --ignore=test/spark/test_internal_mlflow.py
              -m 'spark'
  This keeps test/spark/test_internal_mlflow.py (which depends on the
  internal MLflow tracking server and unconditionally imports pyspark
  at module level) from breaking collection in either variant.

* The 'spark' variant only runs where pyspark is installed by the
  workflow today: ubuntu-latest with Python 3.11 / 3.12 / 3.13. It is
  excluded for windows-latest and for Python 3.10.

* All Linux test jobs now run under 'coverage run' (not just the 3.11
  job). Each Linux job combines its parallel-mode coverage shards into
  one .coverage file and uploads it as a uniquely named artifact. A new
  'coverage' aggregator job downloads every per-job artifact, runs
  'coverage combine' across them, generates a single coverage.xml and
  uploads that one combined report to Codecov. This replaces the
  previous per-3.11-job Codecov upload.

* The 'Save dependencies' step is now gated to a single matrix entry
  (ubuntu / 3.11 / notspark) on push to main so that parallel jobs do
  not race on the unit-tests-installed-dependencies branch.

Coverage is intentionally not collected on Windows runners to avoid
Linux/Windows path mismatches when combining .coverage data files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Three test modules each rebuilt the same SynapseML/MLflow-Spark Spark
session from scratch with identical configuration:

  test/spark/test_0sparkml.py
  test/spark/test_internal_mlflow.py (in _init_spark_for_main)
  test/automl/test_extra_models.py

Move the SparkSession.builder configuration, log_model_allowlist
override, and disable/restore_spark_ansi_mode + atexit cleanup into
a single test-only helper at test/spark/_init_spark.py exposing:

  init_spark_session(app_name, master)        - build/fetch the session
  setup_spark_for_tests(app_name, master)     - returns (spark, skip_spark)
                                                with platform/import gating
                                                and ANSI mode handling

Each test module now calls the helper instead of duplicating the
Maven-coordinates / config block. No behavioural change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The first OSS CI run on this PR uncovered 4 real test failures:

  test/automl/test_ts_coverage.py::test_prettify_no_test_ndarray_raises
  test/automl/test_ts_coverage.py::test_prettify_no_test_series_raises
    OSS PR #1536 ("Generate timestamps for time series predictions
    without test data") changed prettify_prediction to auto-generate
    timestamps via create_forward_frame instead of raising
    ValueError / NotImplementedError when test_data is None.
    Update the two internal tests to assert the new graceful behaviour
    (a DataFrame with the time column populated) instead of expecting
    an exception that no longer fires.

  test/nlp/test_hf_utils_coverage.py::test_summarization_with_y_true
  test/nlp/test_hf_utils_coverage.py::test_summarization_without_y_true
    Both fail with 'Resource punkt_tab not found' because nltk data
    is not pre-downloaded on the public GitHub Actions runners.
    The internal Azure DevOps pipeline (.pipelines/build.yml) explicitly
    ignores test/nlp for the same reason -- mirror that behaviour by
    adding --ignore=test/nlp to both notspark and spark CI invocations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
scikit-learn 1.8 (pulled in by default on Python 3.11+ in the GitHub
Actions runner image) tightened check_is_fitted via the new estimator
tags system. FLAML's autofe Pipeline (DataTransformer + Featurization)
trips this validation and three tests in test/fabric/test_autofe.py
fail with NotFittedError on py3.11 / py3.13 (py3.10 still resolves to
sklearn 1.7.2 and passes):

  test_numpy_autofe
  test_autofe
  test_autofe_force

The internal Azure DevOps pipeline (.pipelines/build.yml) pins
scikit-learn=1.5.2 via conda for the same reason. Mirror that intent
by capping below 1.8 in the GitHub Actions workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Windows notspark jobs were failing because the pandas<3 and scikit-learn<1.8
pins were gated to ubuntu-latest only. Windows ended up with pandas 3.0.2 and
scikit-learn 1.8.0, which produced 8 distinct failures:

  * test/fabric/test_autofe.py (3 tests)
      sklearn.exceptions.NotFittedError on autofe Pipeline -- sklearn 1.8
      tightened check_is_fitted via the new estimator-tags system.

  * test/automl/test_data_coverage.py TestAddTimeIdxCol (2 tests)
      AttributeError: 'Series' object has no attribute 'view' -- pandas 3.0
      removed the deprecated Series.view API.

  * test/automl/test_ts_coverage.py TestDataTransformerTS (2 tests)
      TypeError: Invalid value for dtype 'str' -- pandas 3.0 stricter dtype
      validation.

  * test/automl/test_ts_coverage.py TestSimpleForecaster (1 test)
      KeyError: 0 in test_seasonal_naive_fit_predict_int -- pandas 3.0 index
      semantics change.

The internal Azure DevOps pipeline pins both packages via conda for every
environment (scikit-learn=1.5.2; pandas via the conda env yml). Mirror that
intent here by removing the matrix.os filter, so Windows gets the same
constraints. The py3.10 carve-out for pandas remains because its older
transitive deps already pull in pandas<3.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

Li Jiang (thinkall) and others added 14 commits May 11, 2026 02:37
The previous CI cycle pinned pandas<3 and scikit-learn<1.8 to mask test
failures on the new releases. Pinning is the wrong fix in non-spark envs
(FLAML supports modern pandas/sklearn there); pyspark is the only reason
to keep pandas<3. This commit fixes the underlying FLAML bugs so tests
pass on pandas 3.0.2 + scikit-learn 1.8.0, and narrows the workflow pins.

Code fixes
----------
* flaml/automl/data.py
  - add_time_idx_col: replace Series.view('int64') (removed in pandas 3)
    with .astype('int64') for the datetime->int64-nanoseconds cast.
  - Use .iloc[0] when extracting a scalar from .mode() to avoid the
    pandas FutureWarning that becomes an error in pandas 3.
  - DataTransformer: add __sklearn_is_fitted__ so the transformer
    satisfies sklearn 1.8's stricter check_is_fitted when wrapped in
    a Pipeline (e.g. AutoML.feature_transformer).

* flaml/automl/time_series/ts_data.py
  - DataTransformerTS.transform: building y in-place via
    'y.iloc[:] = y_tr' raises 'Invalid value for dtype str' on pandas 3
    when y has string dtype but the encoder produces ints. Build a new
    Series/DataFrame of the appropriate dtype instead.

* flaml/automl/time_series/ts_model.py
  - SeasonalNaive.predict: 'forecast(...)[0]' performs label-based
    lookup on Series with non-integer indexes in pandas 3 and raises
    KeyError(0). Use .iloc[0] for positional access.

* flaml/fabric/autofe.py
  - Featurization: set self._is_fitted = True at the start of fit() so
    even no-op fits register as fitted, and add __sklearn_is_fitted__
    so sklearn 1.8's check_is_fitted accepts the Pipeline wrapping
    [DataTransformer, Featurization] returned by automl.feature_transformer.

Workflow
--------
* .github/workflows/python-package.yml
  - Drop the scikit-learn<1.8 pin entirely (FLAML now supports 1.8).
  - Restore the pandas<3 pin to ubuntu-latest only (pyspark, which is
    only installed on Ubuntu in this matrix, doesn't yet support
    pandas 3.0). Windows runs against pandas 3 directly.

Verification
------------
Reproduced both failure modes locally with a fresh venv (pandas 3.0.2,
scikit-learn 1.8.0) and confirmed the previously-failing tests now pass:
  test/automl/test_data_coverage.py::TestAddTimeIdxCol (3 tests)
  test/automl/test_ts_coverage.py::TestDataTransformerTS::test_transform_with_label_transformer
  test/automl/test_ts_coverage.py::TestDataTransformerTS::test_transform_y_dataframe_with_label_transformer
  test/automl/test_ts_coverage.py::TestSimpleForecaster::test_seasonal_naive_fit_predict_int
  test/fabric/test_autofe.py::test_numpy_autofe
  test/fabric/test_autofe.py::test_autofe
Also re-ran the same suite against the older pandas 2.3 / sklearn 1.5
combo to confirm no regressions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…load

The Codecov dashboard wasn't showing data for branch
'lijiang/open-source-internal-merge' because the coverage upload was
silently failing. The 'Combine coverage and upload to Codecov' job log
showed:

    [info] -> No token specified or token is empty
    [error] There was an error running the uploader: Error: There was
            an error fetching the storage URL during POST: 429
    [info] Codecov will exit with status code 0. ...

i.e. the v3 uploader was hitting Codecov's tokenless rate limit and then
exiting 0 (so the job appeared green even though no data was uploaded).

Switch to codecov/codecov-action@v5 (and pass CODECOV_TOKEN if it's set
as a repo secret). v5 uses GitHub OIDC for authenticated tokenless
uploads on public repos, which has much higher quota and avoids the
429s. Also enable verbose logging so future upload failures are obvious.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The previous codecov-action@v5 attempt still failed with HTTP 400:
    {"message":"Token required because branch is protected"}

The action defaults to anonymous tokenless uploads, which Codecov is
phasing out -- in particular, anonymous POSTs are rejected for
upstream-source branches in repos with protected branches (which
microsoft/FLAML has on main). Set 'use_oidc: true' to make the action
exchange a GitHub OIDC token for an authenticated Codecov upload, and
add 'id-token: write' to the workflow permissions so the OIDC token can
actually be minted.

CODECOV_TOKEN is still honored when present; OIDC is the fallback that
removes the need for a repo admin to provision a secret.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PR coverage uploads now succeed (since 7813ef0 + fcb411a), but
Codecov still wasn't posting per-PR comments because:

  1. The repo had no codecov.yml, so Codecov fell back to its old
     defaults (no explicit comment layout, no flags config).
  2. The Codecov GitHub App has to be installed on microsoft/FLAML
     before any comments can be posted -- this is an org-admin
     action that must be done via https://github.com/apps/codecov
     (the workflow can't bootstrap it).

This commit covers (1). Once a maintainer installs the Codecov GitHub
App per (2), every PR will get a comment matching the standard layout
(coverage delta table + flags + impacted files + footer link to
Codecov). The config also defines:

  * coverage.status.project (target=auto, threshold=1%) -- a soft
    project-coverage status check
  * coverage.status.patch (target=70%, informational=true) -- patch
    coverage tracked but non-blocking until the team gets used to it
  * coverage.range '60...95' -- color thresholds for the comment
  * flag 'unittests' -> paths: flaml/ -- matches the flag the workflow
    uploads (see .github/workflows/python-package.yml)
  * ignore patterns for test/, notebook/, website/, setup.py,
    flaml/version.py, and flaml/autogen/ (the latter is legacy code
    that has moved to microsoft/autogen)
  * codecov.notify.after_n_builds: 1 + wait_for_ci: true so the
    comment appears as soon as the single combined upload finishes
    (the Build workflow already aggregates per-job coverage shards
    into one report)

Validated against https://codecov.io/validate (200 / 'Valid!').

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov was processing uploads (status 200) and computing the PR
comparison correctly (base 65.76% -> head 84.38%, +17.4%), but
codecov-commenter was never posting a PR comment. Simplifying the config
to a minimal layout (no codecov.notify overrides, drop flag-paths
mapping and carryforward toggles) so we match what microsoft/SynapseML
uses (no codecov.yml at all), which reliably gets a codecov-commenter
comment on every PR.

Removed:
- codecov.notify (after_n_builds, wait_for_ci, require_ci_to_pass) --
  defaults are equivalent and known to work
- comment.behavior, require_base, require_head, show_carryforward_flags --
  any of these may have been suppressing the comment in combination
- flags.unittests block -- inferred automatically from the upload

Kept:
- coverage.status.project / patch defaults
- comment.layout + require_changes:false
- ignore patterns for tests/notebooks/website/etc.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mirror the exact codecov-action invocation that microsoft/physical-ai-
toolchain uses (codecov-action@v6 + a 'name' parameter), which reliably
produces a codecov-commenter PR comment on every PR. Our v5 invocation
uploads + computes the comparison successfully (verified in Codecov
API), but no codecov-commenter comment is being posted on PR #1545
even after CI passes.

The 'name' field is what shows up in the Codecov 'sessions' table on
the PR page and is documented as required for the notification engine
to route the comment correctly when a single repo has multiple upload
sources (we have 11 build matrix entries that all funnel into one
combined coverage.xml).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CODECOV_TOKEN secret was just added to the repo. Trigger a full CI
cycle so the codecov-action can pick it up and authenticate the upload
explicitly (instead of falling back to OIDC). With an explicit token,
codecov-commenter should reliably post a PR comment on completion --
this is how SynapseML/physical-ai-toolchain reliably get comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The codecov-action@v6 logic prefers OIDC when both `use_oidc: true` and
an explicit token are set: 'Token set from env' (CC_OIDC_TOKEN) wins
over 'Token set from input' (CODECOV_TOKEN). The upload log on the
prior run confirmed this -- Token length: 2048 (an OIDC JWT), not the
~10-char repo upload token from Codecov's settings page.

OIDC uploads succeed (status 200, comparison computed, ci_passed=true)
but for this repo they don't trigger the codecov-commenter PR comment.
Forcing the explicit repo-scoped upload token makes Codecov treat the
upload as 'owner-authenticated', which is what reliably unlocks the
notification path on PRs (matches what microsoft/SynapseML does).

Also dropped the now-unused 'id-token: write' workflow permission.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov upload to the dashboard works fine (CODECOV_TOKEN auth, status
200, coverage 84.39% recorded), but codecov-commenter has been silent
on this repo since Feb 2024 even with all four config variants tried
(custom yml, default yml, OIDC, explicit token). Rather than wait on
Codecov support to refresh their internal repo state, post the coverage
comment directly via GITHUB_TOKEN using MishaKav/pytest-coverage-comment.

Codecov upload remains intact -- the dashboard at app.codecov.io
continues to receive uploads for trend tracking and PR comparison,
codecov.yml still defines status checks. Only the in-PR comment is
now produced by the new action.

Changes:
- pull-requests: write workflow permission (required so GITHUB_TOKEN
  can comment on PRs).
- coverage report -m output is now tee'd into pytest-coverage.txt --
  this is the text format MishaKav/pytest-coverage-comment expects.
- New 'Post coverage comment to PR' step pinned to @main; runs only on
  pull_request events when the coverage file exists. unique-id-for-
  comment ensures the action updates its existing comment in place
  rather than spamming on every CI run.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The notspark CI jobs were taking ~75-100 min wall time, dominating
the entire CI cycle. Parallelize them across 2 worker procs using
pytest-xdist to roughly halve wall time without CPU oversubscription.

Why -n 2 (not -n auto / -n 4):
- GitHub-hosted runners have 4 vCPU.
- lightgbm / xgboost / sklearn / openblas all use internal threading.
- 2 pytest workers x ~2 internal threads each fits 4 vCPU well;
  4 workers would oversubscribe and likely hurt wall time.

Why --dist=loadfile:
- Tests in the same file often share heavy module-level imports
  (transformers, torch, prophet, etc). Keeping them in the same
  worker avoids re-importing those per test.

Why spark stays serial:
- SynapseML's SparkSession is a single global JVM instance and the
  Spark workers themselves already parallelize work. Pytest-level
  parallelism would contend on the same JVM, hurting rather than
  helping. Spark jobs already run in ~20 min.

Coverage in xdist worker subprocesses:
- Coverage.py needs explicit subprocess instrumentation -- when
  pytest-xdist spawns workers, they don't inherit coverage from the
  parent. Add a coverage_subprocess.pth file in site-packages that
  invokes coverage.process_startup(), gated by the
  COVERAGE_PROCESS_START env var (set per test step).
- .coveragerc already sets parallel=true, so each worker writes its
  own .coverage.<host>.<pid>.<rand> shard which we already combine.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Two distinct failures showed up after enabling pytest-xdist on
notspark:

1) MLflowIntegration PicklingError in test_forecast.py / test_score.py
   / test_notebook_example.py:
   _pickle.PicklingError: Can't pickle <class 'flaml.fabric.mlflow.MLflowIntegration'>:
       it's not the same object as flaml.fabric.mlflow.MLflowIntegration

   Root cause: test/fabric/test_mlflow_coverage.py was calling
   importlib.reload(flaml.fabric.mlflow) in-process to test the
   pyspark-missing import fallback. After reload, the class object
   bound at flaml.fabric.mlflow.MLflowIntegration is brand new --
   different identity from the one already imported into
   flaml.automl.automl via 'from flaml.fabric.mlflow import
   MLflowIntegration'. Any pre-existing AutoML instances pickle-fail
   because pickle's class lookup-by-qualname returns the post-reload
   class, mismatching obj.__class__.

   With serial pytest, automl/* runs before fabric/* (lexical order)
   so the reload happens after all AutoML pickling. Under
   --dist=loadfile, files distribute non-deterministically across
   workers and the order can interleave.

   Fix: rewrite the test to spawn a fresh subprocess instead of
   reloading the module in-process. The subprocess can mutate
   sys.modules freely without polluting the parent worker.

2) JAVA_GATEWAY_EXITED on test/automl/test_extra_models.py:
   The file has pytestmark = pytest.mark.spark so all tests would
   be deselected by -m 'not spark', but pytest still IMPORTS the
   module during collection -- and the module's top-level code
   calls setup_spark_for_tests('MyApp'), starting a SparkSession.
   Two pytest-xdist workers each starting their own SparkSession
   collide on the JVM gateway port.

   Fix: add --ignore=test/automl/test_extra_models.py to the
   notspark pytest invocation. The spark variant still picks it up
   (spark step doesn't ignore test/automl).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Previous attempt (tee'd 'coverage report -m' into pytest-coverage.txt)
was rejected by MishaKav with 'Coverage file ... has bad format or
wrong data' because the action's text-mode parser also requires the
pytest test-session summary line (e.g. "=== N passed in T s ===")
which plain 'coverage report' doesn't emit.

MishaKav supports an alternative input pytest-xml-coverage-path that
takes a Cobertura XML coverage file directly -- the same one we
already generate for the Codecov upload. Switch to that and drop the
pytest-coverage.txt artifact.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The previous commit accidentally duplicated 'unique-id-for-comment'
in the action's 'with:' mapping, which the check-yaml pre-commit
hook caught:
  found duplicate key 'unique-id-for-comment' with value 'pytest-coverage-comment'

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented May 13, 2026 •

Copy link
Copy Markdown

coverage

## Summary
Remove benchmark/pmlb and notebook/trident, along with their exclusive tests,
obsolete ignore rule, and stale notebook documentation. Add an executable public
parameter-importance example that starts an MLflow run before fitting.

## Prompting Intent
The engineer requested removal of both folders and asked to address review
6107561363 on PR 1545. Preserve public defaults, keep the internal library
features available, and do not commit review outputs.

## Linked Sources
- Consolidation PR: #1545
- Review comment: #1545 (review)

## Rationale
Retire the requested benchmark and notebook artifacts without removing library
functionality or unrelated test coverage. Collect plotting history explicitly
through an MLflow run rather than enabling Fabric defaults or autologging
globally. Execute the documented example in an isolated public environment;
removing only its tracking context reproduces the reported trial-history error.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
@thinkall

Copy link
Copy Markdown
Collaborator Author

Addressed review 6107561363 in f958965.

Removed benchmark/pmlb and notebook/trident, including the affected plotting notebooks and tests that exclusively exercised the retired files. The public plotting example now starts an MLflow run before fitting, without enabling Fabric defaults or global autologging.

A regression executes that exact example outside Fabric and verifies collected trial history and a real parameter-importance plot. Removing only the MLflow context reproduces the reported ValueError. The affected suite passed with 117 passed, 9 platform skips, and all-file pre-commit passed.

Current-head Build 46373352895 is running; prior green checks are not being counted as validation of this new commit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A failed Spark revision publication can leave the driver and workers executing different learner or metric code, creating a critical cross-node consistency risk.

5 open issues

Review effort: Max

Comment thread flaml/tune/spark/__init__.py Resolved
Comment thread .coveragerc Resolved
Comment thread flaml/automl/spark/__init__.py Resolved
Comment thread flaml/fabric/logger.py Resolved
Comment thread test/default/test_defaults.py Resolved
## Summary
Separate Spark code preparation from committed activation, reject incomplete
worker publications, and retain immutable revision identities across failures.
Scope pandas-on-Spark ANSI compatibility to data entrypoints, including model
preprocessing, splitting, and scoring, without import-time session mutation.
Keep optional diagnostic write failures nonfatal, combine parallel coverage
before reporting, and use the checked-in housing cache in offline tests.

## Prompting Intent
The engineer asked to address the five new comments on PR 1545. Preserve public
defaults, the requested folder removals, existing library features, and exact
OSS ROUGE tests. Fix the reported failures and add focused regression coverage
without committing review outputs or starting another independent review round.

## Linked Sources
- Consolidation PR: #1545
- Review: #1545 (review)
- Spark publication: #1545 (comment)
- Coverage reporting: #1545 (comment)
- Spark ANSI compatibility: #1545 (comment)
- Diagnostic failures: #1545 (comment)
- Offline fixtures: #1545 (comment)

## Rationale
Workers require an activation published after the driver's commit instead of
treating every delivered archive as committed. Incomplete activation fails
closed and can be retried; it does not silently select inconsistent code.
Scoped compatibility guards preserve caller ANSI settings and avoid starting
Spark for ordinary local inputs. Input fixtures remain separate from isolated
test output paths, and diagnostic or reporting infrastructure does not alter
the normal AutoML and Tune contracts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The download-policy regression test can miss an omitted opt-out, while a process-wide lock held during distributed Spark actions unnecessarily serializes concurrent jobs.

4 open issues
3 resolved since last review

Review effort: Max

Comment thread flaml/automl/spark/__init__.py Resolved
Comment thread test/test_artifact_paths.py Resolved
## Summary
Use session-aware reference counts for temporary pandas-on-Spark ANSI options.
Hold the lock only for configuration bookkeeping, restore the original raw
option after the last overlapping caller, and preserve unset values.
Require the housing regression's actual call to explicitly disable downloads.

## Prompting Intent
The engineer requested ongoing monitoring, hourly handling of new PR comments,
and an immediate check. Address the two newly reported issues without changing
public defaults, undoing prior fixes, or committing review outputs.

## Linked Sources
- PR: #1545
- Review: #1545 (review)
- Scope concurrency: #1545 (comment)
- Download-policy regression: #1545 (comment)
- PySpark pandas configuration implementation: pyspark.pandas.config.get_option, set_option, and reset_option

## Rationale
Spark actions must not be serialized by a Python metadata lock. Session-specific
ownership preserves overlapping operations and restores the correct session
even when the final caller runs on another thread. Tests cover enabled,
disabled, unset, and unsupported options, independent sessions, failures, and
actual overlapping Spark actions. The download-policy test now rejects missing
or true opt-outs instead of silently replacing them.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because critical findings involve incorrect optimization-result selection and optional telemetry initialization failures that can prevent package imports.

No open issues 🎉

4 resolved since last review

Review effort: Max

## Summary
Reuse the existing checked-in classification fixture for ordinary notebook CI
while preserving real model fitting, predictions, ensembles and model reloads.
Keep the original OpenML dataset/task integrations behind an explicit live
opt-in, bound ensemble parallelism, and preserve strict TLS/error validation.
Require the repaired scikit-learn client in the Windows ARM live-test profile.
Keep the coverage-command regression lightweight with an isolated measured
fixture instead of importing the complete optional ML stack.

## Prompting Intent
The engineer requested fixing CI errors, adding CI repair to hourly monitoring,
and explicitly chose deterministic CI fixtures with retained opt-in live tests.
They also proposed storing small data fixtures in the repository. Reuse the
existing 122 KB fixture rather than copying larger downloads or weakening checks.

## Linked Sources
- PR: #1545
- Failing ARM Python 3.13 job: https://github.com/microsoft/FLAML/actions/runs/46404530636/job/141799296110
- Failing ARM Python 3.12 job: https://github.com/microsoft/FLAML/actions/runs/46404530636/job/141799296179
- Upstream OpenML endpoint repair: https://scikit-learn.org/dev/whats_new/v1.9.html
- Canonical OpenML API: https://docs.openml.org/ecosystem/Rest/
- Native fixed-client wheels: https://pypi.org/pypi/scikit-learn/1.9.0/json
- Failing live task-split endpoint: https://openml.org/api_splits/get/7592/Task_7592_splits.arff
- Existing fixture: test/pipeline_tuning_example/data/data.csv

## Rationale
All failed jobs depended on live OpenML availability. Its task-split endpoint
currently returns an error message as HTTP 200 instead of ARFF. Ordinary CI
should validate FLAML, not the uptime of that service; the approved opt-in live
tests retain the original datasets and TLS checks. The checked-in fixture is
small, deterministic and already maintained by this repository.
Windows ARM also used an old scikit-learn client forced by the joblib cap.
The repaired 1.9 client uses the canonical HTTPS endpoint and requires joblib
1.4+. Scope that change to the affected test profile, preserving public core,
AutoML, Spark and other test profiles. Explicit single-worker ensembling avoids
unbounded process fan-out without removing ensemble coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
@thinkall

Copy link
Copy Markdown
Collaborator Author

CI repair published in 8e2c97a.

The failures were confined to live OpenML examples. Ordinary CI now reuses the existing 122 KB checked-in fixture while retaining real training, predictions, ensembles and model reload checks. The original OpenML dataset/array/task integrations remain explicit opt-in checks (FLAML_RUN_OPENML_LIVE=1, marker live_openml); TLS failures are not bypassed or silently converted to skips.

The Windows ARM test profile also permits the upstream fixed scikit-learn client. Its old joblib cap had forced a client using the retired API hostname. Public installation defaults and other dependency profiles remain unchanged.

All five required offline model/reload cases passed, including the missing-SDK task case. The final combined affected-test evidence has 114 passing unique cases; three live integrations are deliberately opt-in. Fresh exact-head CI is running.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because changing tolerance bounds can make FLOW2 select the wrong configuration, alongside regressions in NaN handling and failed-completion callbacks.

No open issues 🎉

Review effort: Max

## Summary
Post the coverage summary and badge without the oversized detailed table.
Keep coverage collection, full artifacts, Codecov uploads and CI gates unchanged.

## Prompting Intent
The engineer requested hourly monitoring and repair of CI errors and review
feedback. The current-head CI passed, but its coverage bot reported that the
detailed comment exceeded GitHub's 65,536-character limit and was not posted.

## Linked Sources
- PR: #1545
- Coverage warning: #1545 (comment)
- Successful build and reporting warning: https://github.com/microsoft/FLAML/actions/runs/46425085392
- Pinned action input contract: https://github.com/MishaKav/pytest-coverage-comment/blob/637da55541a2c0e160cbe17c914b92c6a7a3ee67/action.yml

## Rationale
Use the existing action's documented hide-report option, which retains the
summary and badge. This fixes comment delivery without weakening coverage,
changing test selection, adding permissions, or replacing the pinned action.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
@thinkall

Copy link
Copy Markdown
Collaborator Author

The coverage comment size warning is addressed in 90c3cc2: the pinned action will post its summary and badge without the oversized detailed table. Full coverage data/artifacts, Codecov uploads and CI gates are unchanged.

Parent head 8e2c97a passed all automatic checks, including the real Spark publication/concurrency cases and offline model/reload checks. The new commit changes reporting configuration only; its own checks are pending.

…stics

## Summary
Use the existing checked-in housing and classification fixtures for default Spark
notebook, exception, and parallel-training tests. Retain the original OpenML paths
as explicitly enabled live checks, require an actual trained model, and propagate
live-loader errors rather than silently passing.

Isolate notebook outputs and generated learners from the checkout. Preserve each
executed notebook and print failed or retried test details immediately so a later
step timeout cannot discard the evidence.

## Prompting Intent
The engineer requested active hourly repair of PR 1545's CI failures and approved
deterministic ordinary CI using small checked-in fixtures, with live OpenML checks
retained as opt-in integrations. Preserve real distributed execution and public
defaults; do not bypass gates, increase timeouts, or commit review outputs.

## Linked Sources
- Consolidation PR and ongoing maintenance request: #1545
- Failed Spark 4.1 / Python 3.13 job: https://github.com/microsoft/FLAML/actions/runs/46442565218/job/141931234239
- Approved fixture-based CI policy: #1545 (comment)
- Previous successful complete CI: https://github.com/microsoft/FLAML/actions/runs/46425085392
- Coverage-report follow-up: #1545 (comment)

## Rationale
The failed job hit its 120-minute test-step limit after long delays in remaining
OpenML-dependent cases. Its notebook exhausted three 600-second attempts without
retaining the failing cell traceback. Reusing the existing 367 KB housing cache
and 122 KB classification fixture removes those ordinary-CI network dependencies
without duplicating data or altering library implementations and package metadata.
Real training, prediction, custom-learner publication, timeout limits, and worker
coverage gates remain. Local validation passed 112 unit/pipeline cases and four
real Spark cases; complete notebook and remote-worker proof require fresh CI.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7
@thinkall

Copy link
Copy Markdown
Collaborator Author

Published 3ca0a592e for the Spark CI timeout.

The previous Spark 4.1 job reached its 120-minute step limit after long delays in remaining OpenML-dependent tests. Default Spark notebook/exception checks now use the existing 367 KB housing cache; the parallel-training smoke test uses the existing 122 KB classification fixture. No data was added or duplicated. Original live checks remain opt-in with FLAML_RUN_OPENML_LIVE=1 and live_openml.

The parallel-training test now requires a trained model and no longer silently passes on loader failures. Notebook outputs and custom learners are isolated from the checkout. Executed notebooks and immediate failure/retry tracebacks are retained, addressing the missing cell-level evidence in the original timeout. Timeouts, real Spark execution, worker coverage gates, library implementation, and dependencies are unchanged.

Local validation: 112 unit/pipeline cases and four real Spark cases passed, including parallel training and predictions. All-file hooks and actionlint passed. Fresh Build 46475871127 is running; full notebook and remote-worker evidence is still required. Hourly monitoring and active CI/comment repair remain enabled.

@thinkall

Copy link
Copy Markdown
Collaborator Author

Build 46475871127 passed for exact head 3ca0a592e. All current automatic checks are green.

Verified the artifacts from all three Spark profiles: the offline notebook executed all 17 nonempty code cells in 77-81 seconds, real parallel training and predictions passed, and normal code publication plus both delivery/state-failure cases passed on remote workers. Initial and final worker coverage proofs are present. The original live integrations remain explicitly opt-in.

The bounded 87% coverage badge links to this head without the earlier comment-size warning. There are no unresolved review threads; the PR is mergeable and still requires human approval. Hourly monitoring remains active until merge or closure.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The notebook’s broad exception handler masks OpenML failures with a California housing fallback even in opt-in live-test mode, allowing failed integrations to pass.

1 open issue

Review effort: Max

Comment thread notebook/integrate_spark.ipynb Resolved
## Summary
Re-raise OpenML loader failures when FLAML_RUN_OPENML_LIVE=1 instead of
substituting California housing data. Preserve the original interactive fallback
when the flag is unset or disabled, and leave the offline fixture path unchanged.

Exercise the actual notebook data cell with controlled TLS and malformed-response
failures, verifying original exception identity, no fallback in live mode, and
unchanged interactive behavior. Document the distinction.

## Prompting Intent
The engineer requested hourly monitoring and correction of PR 1545's actionable
review findings and CI failures. Review 6121901772 identified a false-success path
in the opt-in live notebook integration. Keep ordinary CI deterministic, preserve
public defaults, and do not weaken TLS/error checks or launch another review round.

## Linked Sources
- Consolidation PR: #1545
- Review finding: #1545 (comment)
- Review overview: #1545 (review)
- Existing fixture/live policy: #1545 (comment)

## Rationale
An explicit live integration must fail when its OpenML source fails; replacing
that source with another dataset invalidates the check. A mode-specific bare
raise preserves the original exception and traceback without changing the
normal interactive fallback or introducing network-dependent unit tests.
The two live-error regressions failed before the guard, while four interactive
cases already passed. All 25 focused fixture/notebook checks now pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b0e4942d-f489-4b42-8a90-097ede4e88f7

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because the unpublished findings span critical import failures, inconsistent optimization incumbents, and coverage and test regressions.

No open issues 🎉

1 resolved since last review

Review effort: Max

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants